home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / mint / bed02 / bed.h < prev    next >
C/C++ Source or Header  |  1993-08-15  |  3KB  |  68 lines

  1. /* Bed - v.pomey */
  2.  
  3. /* definition of the message base used by Bermuda */
  4. /*   taken from the Bermuda source code  */
  5.  
  6. #define PRIVATE         0x0001          /* Flag private bit             */
  7. #define CRASH           0x0002          /* Mail: crash message          */
  8. #define RECEIVED        0x0004          /* Flag received bit            */
  9. #define SENT            0x0008          /* Mail: msg has been sent      */
  10. #define FILEATCH        0x0010          /*       msg has file attached  */
  11. #define MSGFWD          0x0020          /*       msg has been send      */
  12. #define KILLSEND        0x0080          /*       kill/send              */
  13. #define ORPHAN          0x0040          /*       unknown destination    */
  14. #define MSGLOCAL        0x0100          /*       message entered here   */
  15. #define MSGHOLD         0x0200          /*       hold message for pickup*/
  16. #define DIRECT          0x0400          /*       no route but no crash  */
  17. #define NOKILL          0x0800          /*       no kill by crunch      */
  18. #define CARBONCOPY      0x4000            /* internal flag */
  19. #define DELETED         0x8000          /* Flag deleted bit             */
  20.  
  21. struct Hdr {
  22.  char   from[36],                       /* User who created msg         */
  23.         to[36],                         /* User who may read msg        */
  24.         topic[72],                      /* Topic of msg                 */
  25.         time[20];                       /* Date/Time string of message  */
  26.  long   create,                         /* Date when MSGS was received  */
  27.         Mstart;                         /* Start offset of message      */
  28.  ushort up,                             /* NC                           */
  29.         parent,                         /* Parent # of this msg         */
  30.         flags,                          /* Attribute bits               */
  31.         mailer[8],                      /* needed for the mailer        */
  32.         size,                           /* # bytes in message           */
  33.         reads,                          /* Number of times read         */
  34.         cost,                           /* Cost of message*100          */
  35.         Ozone,
  36.         Onet,                           /* Net on which msg was created */
  37.         Onode,                          /* Node on which msg was created*/
  38.         Opoint,
  39.         Dzone,
  40.         Dnet,                           /* Destination net for msg      */
  41.         Dnode,                          /* Destination node for msg     */
  42.         Dpoint;
  43. };
  44.  
  45. /****************************************************************/
  46.  
  47. extern int ourzone, ournet, ournode, ourpoint;
  48. extern char sysop[80];
  49. extern int  curr_area, num_msgs, curr_msg;
  50. extern FILE *texts;
  51. extern struct Hdr *headers;
  52.  
  53. #define MaxAreas 100
  54. int num_areas;            /* number of areas */
  55. struct _areas {
  56.     char area_name[50];
  57.     char area_file[100];
  58.     int  flags;
  59.     int  lastread;
  60. } areas[MaxAreas];
  61.  
  62. int readconfig(void);
  63. int readareas(void);
  64.  
  65. #define BedVersion "0.2"
  66. #define FALSE 0
  67. #define TRUE  1
  68.